package com.fm.openinstall.b;

public class c {
    public static final c a;
    public static final c b;
    public static final c c;
    public static final c d;
    public static final c e;
    private int f;
    private String g;

    static {
        a = new c(1, "未初始化");
        b = new c(2, "正在初始化");
        c = new c(0, "初始化成功");
        d = new c(-1, "初始化失败");
        e = new c(-2, "初始化错误");
    }

    c(final int f, final String g) {
        this.f = f;
        this.g = g;
    }

    public static c a(final int n) {
        if (n == -2) {
            return com.fm.openinstall.b.c.e;
        }
        if (n == -1) {
            return com.fm.openinstall.b.c.d;
        }
        if (n == 0) {
            return com.fm.openinstall.b.c.c;
        }
        if (n == 1 || n != 2) {
            return com.fm.openinstall.b.c.a;
        }
        return com.fm.openinstall.b.c.b;
    }

    public int a() {
        return this.f;
    }
}
